//
//  NetworkHandle.h
//  UI_新版豆瓣
//
//  Created by dlios on 15-7-31.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import <Foundation/Foundation.h>


@protocol NetworkHandleDelegate <NSObject>

- (void)didFinishLoadDate:(id)result;

@end


@interface NetworkHandle : NSObject

@property (nonatomic, assign) id<NetworkHandleDelegate> delegate;

/* 协议封装 */
+ (void)GETWithURL:(NSString *)urlStr delegate:(id<NetworkHandleDelegate>)delegate;
+ (void)POSTWithURL:(NSString *)urlStr httpBody:(NSString *)httpBody delegate:(id<NetworkHandleDelegate>)delegate;

/* block封装 */
/* GET异步 */
+ (void)GETWithURL:(NSString *)urlStr complication:(void(^)(id result))block;

+ (void)POSTWithURL:(NSString *)urlStr httpBody:(NSString *)httpBody complication:(void(^)(id result))block;





@end
